import request from '@/utils/axios';
import { TotalModule, NewUserEchartsModule } from './modules/homeModule';

export const apiList = {
    total: '/admin/home/total',
    new_user_echarts: '/admin/home/new_user_echarts',
};

export const getTotal = (): Promise<TotalModule> => {
    return request({
        url: apiList.total,
        method: 'get',
    });
};


export const getNewUserEcharts = (params: object): Promise<NewUserEchartsModule> => {
    return request({
        url: apiList.new_user_echarts,
        method: 'get',
        params,
    });
};
